package  com.pcbly.web.business.crm;

/**
* @author carl.song
* Copyright (c) 2010 Lightsoft, International.
* All rights reserved.
*
*/

import com.pcbly.web.persistence.crm.YushouToYingshouDescDao;
import com.pcbly.web.bean.crm.YushouToDescBean;
import com.pcbly.web.business.BaseServiceImp;
import com.pcbly.web.components.hibernate.support.Page;

 
public class YushouToYingshouDescServiceImp extends BaseServiceImp<YushouToDescBean> implements YushouToYingshouDescService {
	 public YushouToYingshouDescServiceImp() {
		super();
		// TODO Auto-generated constructor stub
	}
	private YushouToYingshouDescDao yushouToYingshouDescDao;
	
	public void setYushouToYingshouDescDao(YushouToYingshouDescDao yushouToYingshouDescDao) {
		this.yushouToYingshouDescDao = yushouToYingshouDescDao;
	}
	
	@Override
	public YushouToDescBean getYushouToYingshouDescBeanById(String id) throws Exception {
		// TODO Auto-generated method stub
		return yushouToYingshouDescDao.get(YushouToDescBean.class,id);
	}
	
	@Override
	public void removeYushouToYingshouDescBeanById(String id) throws Exception{
		yushouToYingshouDescDao.removeYushouToYingshouDescBeanById(id);
	}
	
	@Override
	public void removeYushouToYingshouDescBeanByIds(String ids) throws Exception{
		yushouToYingshouDescDao.removeYushouToYingshouDescBeanByIds(ids);
	}
	
	
	@Override
	public YushouToDescBean saveYushouToYingshouDescBean(YushouToDescBean crm) throws Exception{
		return yushouToYingshouDescDao.saveYushouToYingshouDescBean(crm);
	}
	
	@Override
	public YushouToDescBean updateYushouToYingshouDescBean(YushouToDescBean crm) throws Exception{
		yushouToYingshouDescDao.saveObject( crm);
		return crm;
	}
	public Page<YushouToDescBean>  findYushouToYingshouDescBeanByCond(YushouToDescBean bean,
			Page<YushouToDescBean> page, String orderByName, boolean asc)
			throws Exception{
		return yushouToYingshouDescDao.findYushouToYingshouDescBeanByCond(
				bean, page, orderByName, asc);
	}
}
